﻿using System;
using YinfangWeb.Common;

namespace YinfangWeb.Model
{
	/// <summary>
	/// UserToken
	/// </summary>
    [Serializable]
	public class UserToken
	{
		/// <summary>
		/// UserTokenID
        /// </summary>
        [FieldName("UserTokenID")]		
		public int UserTokenID
		{
			get;
			set;
		}
        
		/// <summary>
		/// UserDataID
        /// </summary>
        [FieldName("UserDataID")]		
		public int UserDataID
		{
			get;
			set;
		}
        
		/// <summary>
		/// Token
        /// </summary>
        [FieldName("Token")]		
		public string Token
		{
			get;
			set;
		}
        
		/// <summary>
		/// ValidDateTime
        /// </summary>
        [FieldName("ValidDateTime")]		
		public DateTime ValidDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegDateTime
        /// </summary>
        [FieldName("RegDateTime")]		
		public DateTime RegDateTime
		{
			get;
			set;
		}
        
        public UserToken Clone()
        {
            return (UserToken)this.MemberwiseClone();
        }
        
        public UserToken()
        {
            Token = string.Empty;
            ValidDateTime = ConvertHelper.DefaultDate;
            RegDateTime = ConvertHelper.DefaultDate;
        }
	}
}
